requirejs(["func"], function(func) {
	if(func.getCookie("userName")==null){
		window.location.href="main?page=entry"
	}
});